/*
 * Copyright 2012 Focus Technology, Co., Ltd. All rights reserved.
 */
package com.coderonrails.cdistr.master.comint;

import java.io.InputStream;
import java.net.Socket;

/**
 * ServerThread.java
 * 
 * @author chenjianguo
 */
public class DataServerThread extends ServerThread {

    /*
     * (non-Javadoc)
     * @see com.coderonrails.cdistr.master.comint.ServerThread#doProcess(java.net.Socket)
     */
    @Override
    public void doProcess(Socket socket) {
        try {
            InputStream is = socket.getInputStream();
            byte[] buff = new byte[4096];
            int length = 0;
            while ((length = is.read(buff)) > 0) {

            }
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }
}
